package online.liulei.design.mode;

public class SoldOutState implements State{
    private GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine){
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("Gumball machine is sold out.");
    }

    @Override
    public void ejectQuarter() {
        System.out.println("You cannot eject quarter, Gumball machine is sold out.");
    }

    @Override
    public void turnCrank() {
        System.out.println("You turned, but gumball machine is sold out.");
    }

    @Override
    public void dispense() {
        System.out.println("No gumball dispensed, gumball machine is sold out.");
    }
}
